VerifyCertificateCallback

public interface VerifyCertificateCallback implements NetworkSyncCallback<P, R>

The callback is invoked when certificate verification is required.

The callback can be used to verify SSL certificates using the different strategies defined in the Response.

Use the valid method to notify the engine that the certificate is valid.

Use the invalid method to notify the engine that the certificate is invalid.

Use the defaultAction method to allow the engine to verify the certificate by itself.

If the callback throws an exception, the defaultAction method will be invoked.

Types

Link copied to clipboard
public interface Params
The parameters of the VerifyCertificateCallback.
Link copied to clipboard
public interface Response

Functions

Link copied to clipboard
@CheckForNull()
public abstract R on(P params)
Invoked when the callback needs a response of type R that may be determined based on the provided callback parameters.